﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TShooter.TfsWord.Win.UI
{
    public class Hourglass: IDisposable
    {
        private Cursor _PreviousCursor = Cursor.Current;

        private Hourglass()
        {
            Cursor.Current = Cursors.WaitCursor;
        }

        public void Dispose()
        {
            Cursor.Current = _PreviousCursor;
            GC.SuppressFinalize(this);
        }

        public static Hourglass Show()
        {
            return new Hourglass();
        }
    }
}
